﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.DTO;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;

namespace QuanLyGiaoVuService.CommandServices
{
    public class BanTinCommandService:IBanTinCommandService
    {
        private IBanTinRepository _banTinRepository;
        public BanTinCommandService(IBanTinRepository banTinRepository)
        {
            _banTinRepository = banTinRepository;
        }
        public BanTinDTO InsertBanTin(BanTinDTO banTinDTO)
        {
            return _banTinRepository.InsertBanTin(banTinDTO);
        }
        public BanTinDTO UpdateBanTin(BanTinDTO banTinDTO)
        {
            return _banTinRepository.UpdateBanTin(banTinDTO);
        }
        public bool DeleteBanTin(Guid banTinID)
        {
            return _banTinRepository.DeleteBanTin(banTinID);
        }
    }
}
